package com.jzlin.funhub.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzlin.funhub.admin.model.dto.ArticleTagDTO;
import com.jzlin.funhub.admin.model.dto.ArticleTagGroupDTO;
import com.jzlin.funhub.admin.model.entity.ArticleTagsRef;

import java.util.List;

/**
 * <p>
 * 文章标签关联表 Mapper 接口
 * </p>
 *
 * @author jzlin
 * @since 2025-09-04
 */
public interface ArticleTagsRefMapper extends BaseMapper<ArticleTagsRef> {
    List<ArticleTagDTO> listTagsByArticleId(Long articleId);

    /**
     * 标签和文章数量
     * @return
     */
    List<ArticleTagGroupDTO> countArticleByTag();
}
